package com.dynamixsoftware.printershare.smb.dcerpc;

import com.dynamixsoftware.printershare.smb.dcerpc.ndr.NdrBuffer;
import com.dynamixsoftware.printershare.smb.dcerpc.ndr.NdrException;
import com.dynamixsoftware.printershare.smb.dcerpc.ndr.NdrObject;

class rpc
{
  static class uuid_t
    extends NdrObject
  {
    byte clock_seq_hi_and_reserved;
    byte clock_seq_low;
    byte[] node;
    short time_hi_and_version;
    int time_low;
    short time_mid;
    
    public void decode(NdrBuffer paramNdrBuffer)
      throws NdrException
    {
      paramNdrBuffer.align(4);
      this.time_low = paramNdrBuffer.dec_ndr_long();
      this.time_mid = ((short)paramNdrBuffer.dec_ndr_short());
      this.time_hi_and_version = ((short)paramNdrBuffer.dec_ndr_short());
      this.clock_seq_hi_and_reserved = ((byte)paramNdrBuffer.dec_ndr_small());
      this.clock_seq_low = ((byte)paramNdrBuffer.dec_ndr_small());
      int i = paramNdrBuffer.index;
      paramNdrBuffer.advance(6);
      if (this.node == null)
      {
        if ((6 < 0) || (6 > 65535)) {
          throw new NdrException("invalid array conformance");
        }
        this.node = new byte[6];
      }
      NdrBuffer localNdrBuffer = paramNdrBuffer.derive(i);
      for (int j = 0; j < 6; j++) {
        this.node[j] = ((byte)localNdrBuffer.dec_ndr_small());
      }
    }
    
    public void encode(NdrBuffer paramNdrBuffer)
      throws NdrException
    {
      paramNdrBuffer.align(4);
      paramNdrBuffer.enc_ndr_long(this.time_low);
      paramNdrBuffer.enc_ndr_short(this.time_mid);
      paramNdrBuffer.enc_ndr_short(this.time_hi_and_version);
      paramNdrBuffer.enc_ndr_small(this.clock_seq_hi_and_reserved);
      paramNdrBuffer.enc_ndr_small(this.clock_seq_low);
      int i = paramNdrBuffer.index;
      paramNdrBuffer.advance(6);
      NdrBuffer localNdrBuffer = paramNdrBuffer.derive(i);
      for (int j = 0; j < 6; j++) {
        localNdrBuffer.enc_ndr_small(this.node[j]);
      }
    }
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.dcerpc.rpc
 * JD-Core Version:    0.7.0.1
 */